﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EmployeesList.aspx.cs" Inherits="Console_System_Employee_EmployeesList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

</head>
<body>
    <form id="pagerForm" method="post" action="Console/System/Employee/EmployeesList.aspx">
    <input type="hidden" name="status" value="status" />
    <input type="hidden" name="keywords" value="keywords" />
    <input type="hidden" name="numPerPage" value="<% =NumPerPage %>" />
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="orderField" value="" />
    </form>
    <div class="pageHeader">
        <!--<搜索栏>-->
        <form id="searchForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="Console/System/Employee/EmployeesList.aspx"
        method="post">
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label>
                        姓名：</label>
                    <input name="txtUserName" type="text" value="<%=UserNameString %>" />
                    
                </li>
                <li>
                    <label>
                        电话号码：</label>
                    <input name="txtMobile" type="text" value="<%=MobileString %>" />
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                    检索</button></div>
                        </div>
                    </li>
                    <!--  <li><a class="button" href="demo_page6.html" target="dialog" rel="dlg_page1" title="查询框"><span>高级检索</span></a></li>-->
                </ul>
            </div>
        </div>
        </form>
        <!--</搜索栏>-->
    </div>
    <div class="pageContent">
        <div class="panelBar">
            <ul class="toolBar">
                <li><a class="add" target="navTab" width="520" height="540" href="Console/System/Employee/EmployeesAdd.aspx">
                    <span>添加雇员</span> </a></li>
                <li><a class="delete" href="Console/System/Employee/Employee.ashx?title=delete"
                    posttype="string" rel="ids" target="selectedTodo" title="确实要删除这些雇员吗?"><span>批量删除</span>
                </a></li>
            </ul>
        </div>
        <table class="table" width="100%" layoutH="138">
            <thead>
                <tr>
                    <th width="22">
                        <input type="checkbox" group="ids" class="checkboxCtrl">
                    </th>
                    <th width="80">
                        姓名
                    </th>
                    <th width="20" align="center">
                        性别
                    </th>
                    <th width="60" align="center" orderfield="Birthday">
                        出生日期
                    </th>
                    <th width="30" >
                        籍贯
                    </th>
                    <th width="30"  align="center">
                        手机号
                    </th>
                    <th width="50"  align="center">
                        职位
                    </th>
                    <th width="50">
                        部门
                    </th>
                    <th width="200">
                        家庭住址
                    </th>
                    <th width="70">
                        操作
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="RepeaterTr" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <input name="ids" type="checkbox" value='<%#DataBinder.Eval(Container.DataItem, "ID")%>' />
                            </td>
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "EmployeeName")%>
                            </td>
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "Sex").ToString().Trim()=="1"?"男":"女"%>
                            </td>
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "Birthday", "{0:yyyy-M-d}")%>
                            </td>
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "Origin")%>
                            </td>
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "Mobile")%>
                            </td>
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "Position")%>
                            </td>
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "DepartName")%>
                            </td>
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "HomeAddr")%>
                            </td>
                            <td>
                                <a title="编辑" target="navTab"  width="520" height="540" href="Console/System/Employee/EmployeesEdit.aspx?id=<%# DataBinder.Eval(Container.DataItem, "ID")%>"
                                    class="btnEdit">编辑</a> <a title="删除" target="ajaxTodo" href="Console/System/Employee/Employee.ashx?title=delete&ids=<%# DataBinder.Eval(Container.DataItem, "ID")%>"
                                        class="btnDel">删除</a>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <div class="panelBar">
            <div class="pages">
                <span>显示</span>
                <select class="combox" name="numPerPage" change="navTabPageBreak" param="numPerPage">
                    <option value="<%=NumPerPage%>">选择</option>
                    <option value="20">20</option>
                    <option value="30">30</option>
                    <option value="50">50</option>
                    <option value="100">100</option>
                </select>
                <span>条，共<%=TotalCount%>条</span>
            </div>
            <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=NumPerPage%>"
                pagenumshown="<%=PageNumShown%>" currentpage="<%=PageNum%>">
            </div>
        </div>
    </div>
</body>
</html>
